/**
 * @license
 * Copyright 2024 The Model Explorer Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ==============================================================================
 */

$block_width: 30px;
$block_height: 14px;

.container {
  height: fit-content;
  background-color: var(--me-surface-color);
  padding: 8px;
  line-height: normal;
  color: var(--me-on-surface-color);

  &.hide {
    display: none;
  }

  table {
    border-spacing: 0;
    border-collapse: collapse;
    padding: 0;
    font-size: 11px;

    .key {
      margin-right: 4px;
      box-sizing: border-box;
    }

    .op-node-key {
      width: $block_width;
      height: $block_height;
      border-radius: 5px;
      border: 1px solid var(--me-outline-color);
      background-color: var(--me-surface-color);
    }

    .group-node-key {
      width: $block_width;
      height: $block_height;
      border: 1px solid var(--me-outline-color);
      border-radius: 5px;
      background-color: var(--me-group-node-bg-color1);
    }

    .artificial-layer-key {
      border: 1px solid var(--me-artificial-groups-border-color);
      width: $block_width;
      height: $block_height;
      background-color: var(--me-on-surface-container-low-color);
    }

    .selected-node-key {
      width: $block_width;
      height: $block_height;
      border: 2px solid var(--me-primary-color);
      border-radius: 5px;
      background-color: var(--me-secondary-container-color);
    }

    .identical-group-key {
      width: $block_width;
      height: $block_height;
      border: 1px solid var(--me-outline-color);
      border-radius: 5px;
      background-color: var(--me-identical-group-bg-color);
    }

    .input-key {
      width: $block_width;
      height: $block_height;
      border-radius: 5px;
      border: 2px solid var(--me-incoming-edge-color);
    }

    .output-key {
      width: $block_width;
      height: $block_height;
      border-radius: 5px;
      border: 2px solid var(--me-outgoing-edge-color);
    }

    .shortcut {
      color: var(--me-on-surface-variant-color);
      font-size: 10px;
      line-height: 10px;
    }

    .divider {
      height: 1px;
      border-top: 1px solid var(--me-outline-variant-color);
      margin: 8px 0 4px;
    }
  }
}
